package org.jeecg.modules.platform.fallback;

import org.jeecg.common.api.vo.Result;
import org.jeecg.modules.platform.api.PlatformOrganizationMemberApi;
import org.jeecg.modules.platform.entity.CyPlatformOrganizationInfo;
import org.springframework.boot.autoconfigure.condition.ConditionalOnMissingClass;
import org.springframework.stereotype.Component;

import java.util.List;

@Component
@ConditionalOnMissingClass("org.jeecg.modules.platform.member.controller.CyPlatformOrganizationAndMemberController")
public class PlatformOrganizationMemberFallback implements PlatformOrganizationMemberApi {

    @Override
    public Result<List<CyPlatformOrganizationInfo>> listOrg(String userId) {
        throw new RuntimeException("平台租户管理不可用");
    }

    @Override
    public Result<Boolean> checkAdmin(String userId, String orgId) {
        throw new RuntimeException("平台租户管理不可用");
    }
}
